<?php if(isset($_SESSION['success_massage'])) :?>
    <div class="message bg-green-100 p-3 my-3">
        <?= $_SESSION['success_message'] ?>
    </div>
    <?php unset($_SESSION['success_message']); ?>
<?php endif; ?>
<?php if(isset($_SESSION['error_message'])): ?>
    <div class="message by-red-100 p-3 my-3">
        <?= $_SESSION['error_meaasge'] ?>
    </div>
    <?php unset($_SESSION['error_message']); ?>
<?php endif; ?>